﻿/// Write a program to calculate n! for each n in the range [1..100].
/// Hint: Implement first a method that multiplies a number represented as array of digits by given integer number. 


using System;
using System.Numerics;

class Zad10
{
    static void Main()
    {
        for (int i = 0; i < 100; i++)
        {
            Console.WriteLine("factoriel for {0} is:", i+1);
            Console.WriteLine(Factoriel(i + 1));
        }

    }

    public static BigInteger Factoriel(int i)
    { 
        BigInteger fact = i;
        while (i > 0)
            {
            fact *= i;
            i--;
            }
        return fact;
    }

}